quartz dnd: fix drag icon position relative to cursor position
authorChristoph Reiter <reiter.christoph@gmail.com>
Fri, 24 Jul 2015 11:57:35 +0000 (13:57 +0200)
committerChristoph Reiter <creiter@src.gnome.org>
Mon, 27 Jul 2015 15:27:51 +0000 (17:27 +0200)
The y axis is reversed on osx

gtk/gtkdnd-quartz.c

index 30c0d06adefa0fe29c231678b5e13af79f777158..97841d0496e024d797d04a0f6148333353d37437 100644 (file)
@@ -1170,7 +1170,7 @@ gtk_drag_begin_idle (gpointer arg)
     }
 
   point.x -= info->hot_x;
-  point.y -= info->hot_y;
+  point.y -= [drag_image size].height - info->hot_y;
 
   [nswindow dragImage:drag_image
                    at:point